Simplify reverse proxy hairpin NAT setup with host-gateway - #626
Simplify reverse proxy hairpin NAT setup with host-gateway#626pieterhollander wants to merge 1 commit into
Conversation
Replace static IP assignment for Traefik with Docker's built-in host-gateway, which is simpler and survives container restarts.
|
Hey @pieterhollander, thanks for this one, and sorry it sat so long. Your instinct is right, the Two things came out of digging into it though. First, we can't drop the static IP itself. In the quickstart stack, Traefik's fixed IP ( Second, The good news is the fix ends up even simpler than The section is now "Fix DNS resolution (same-host only)" on main, and the whole rework is about 20 lines:
traefik:
# ...existing traefik config...
networks:
netbird:
ipv4_address: 172.30.0.10
aliases:
- "netbird.example.com"
Steps 1 and 3 of the guide (gRPC route and idle timeout) stay untouched. If you're up for that, I'm happy review any eidts. If you'd rather not after all this time, totally understand, say the word and I'll push the change myself and credit you for it. Thanks again! |
Replace static IP assignment for Traefik with Docker's built-in host-gateway, which is simpler and survives container restarts.
host-gateway, which is simpler and survives container restartshost-gatewayavoids itSupersedes #609